package samples.examples.div_clock.application ;

import divtastic.js.DisplayDiv ;
import divtastic.js.application.views.WindowView ;
import samples.examples.div_clock.views.DivClockView ;
import haxe.Timer;

using divtastic.js.Drawing;
class Controller
{
    
    
    private var _holder :DisplayDiv;
    
    
    
    public function new( holder_: DisplayDiv )
    {
        
        _holder                 = holder_ ;
        var clockWindow         = new DisplayDiv() ;
        _holder.addChild( clockWindow ) ;
        
        clockWindow.x = 40;
        clockWindow.y = 40;
        
        var windowView          = new WindowView(   clockWindow
                                                ,   'Div Clock'
                                                ,   49  , 129
                                                ,   320 , 330
                                                ,   '#9d9e6a' 
                                                ) ;
        
        new DivClockView( clockWindow, windowView ) ;
        
    }
    
    
}